<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class ImagesHelper</title>
			<link rel="stylesheet" href="./css/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class ImagesHelper</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Basic manipulation with image</p>
	<ul class="tags">
				<li><span class="field">author:</span> Alexey Gordeyev IK &lt;<a href="mailto:aleksej@gordejev.lv">aleksej@gordejev.lv</a>&gt;</li>
				<li><span class="field">version:</span> 1.0.3</li>
				<li><span class="field">copyright:</span> Copyright Alexey Gordeyev IK © 2009-2011 - All rights reserved.</li>
				<li><span class="field">link:</span> <a href="http://www.agjoomla.com/classes/">http://www.agjoomla.com/classes/</a></li>
				<li><span class="field">source:</span> http://code.google.com/p/ag-php-classes/</li>
				<li><span class="field">license:</span> GPLv2</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Images---class.images.helper.php.html">/Images/class.images.helper.php</a> (line <span class="field">17</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
												<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#buildimagename" title="details" class="method-name">buildimagename</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$old_filename</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#buildtextwatermark" title="details" class="method-name">buildtextwatermark</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$text</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$font</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$color</span> = <span class="var-default">'#ffffff'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">'center'</span>], [<span class="var-type">imt</span>&nbsp;<span class="var-name">$alpha_level</span> = <span class="var-default">50</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$angle</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">array</span>
										<a href="#calculateposition" title="details" class="method-name">calculateposition</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$watermark_img</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$position</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$src_image</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#clearimagename" title="details" class="method-name">clearimagename</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#convert" title="details" class="method-name">convert</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">'png'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$new_filename</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">mixed</span>
										<a href="#create" title="details" class="method-name">create</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#crop" title="details" class="method-name">crop</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$src_x</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$src_y</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$crp_width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$crp_height</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">bool</span>
										<a href="#destroy" title="details" class="method-name">destroy</a>
											(<span class="var-type">resource</span>&nbsp;<span class="var-name">$image</span>)
									</div>
																								<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#fade" title="details" class="method-name">fade</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$alpha_start</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$alpha_end</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$bg_color</span> = <span class="var-default">&quot;#fff&quot;</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#filename" title="details" class="method-name">filename</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#gradientfill" title="details" class="method-name">gradientfill</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$image_width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$image_height</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$direction</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$start_color</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$end_color</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">mixed</span>
										<a href="#grayscale" title="details" class="method-name">grayscale</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">int</span>
										<a href="#height" title="details" class="method-name">height</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">array</span>
										<a href="#hextorgb" title="details" class="method-name">hextorgb</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$color</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">mixed</span>
										<a href="#info" title="details" class="method-name">info</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$info_type</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">bool</span>
										<a href="#isgdloaded" title="details" class="method-name">isgdloaded</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result">bool</span>
										<a href="#isgdresource" title="details" class="method-name">isgdresource</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#mime" title="details" class="method-name">mime</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">mixed</span>
										<a href="#negative" title="details" class="method-name">negative</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#onlyreflection" title="details" class="method-name">onlyreflection</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span> = <span class="var-default">30</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#overlay" title="details" class="method-name">overlay</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$watermark_img</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">'random'</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$alpha_level</span> = <span class="var-default">50</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#quadrate" title="details" class="method-name">quadrate</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$dimension</span> = <span class="var-default">'px'</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#reflection" title="details" class="method-name">reflection</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span> = <span class="var-default">30</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#resize" title="details" class="method-name">resize</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#resizeto" title="details" class="method-name">resizeto</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$new_size</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$dimension</span> = <span class="var-default">&quot;width&quot;</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#rotate" title="details" class="method-name">rotate</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$degrees</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$bg_color</span> = <span class="var-default">''</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$transparent</span> = <span class="var-default">true</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#save" title="details" class="method-name">save</a>
											(<span class="var-type">resource</span>&nbsp;<span class="var-name">$image</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$destination</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'png'</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$quality</span> = <span class="var-default">100</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#scale" title="details" class="method-name">scale</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#show" title="details" class="method-name">show</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$image</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'png'</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$quality</span> = <span class="var-default">100</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#text" title="details" class="method-name">text</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$text</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$font_size</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$path_to_font</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$font_color</span> = <span class="var-default">'#ffffff'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$bg_color</span> = <span class="var-default">'#000000'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$shadow</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$shadow_color</span> = <span class="var-default">'#cccccc'</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$font</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$text_color</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">resource</span>
										<a href="#tranparent" title="details" class="method-name">tranparent</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$color</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$image</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">int</span>
										<a href="#width" title="details" class="method-name">width</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
									</div>
								
																																																																												<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#download" title="details" class="method-name">download</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$path_to_source</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$path_to_temp</span> = <span class="var-default">false</span>])
									</div>
																																																																																																																																																																																																								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodbuildimagename" id="buildimagename"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method buildimagename</span> (line <span class="line-number">402</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build new image filename name with prefix</p>
	<ul class="tags">
				<li><span class="field">return:</span> new image filename</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			buildimagename
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$old_filename</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$old_filename</span><span class="var-description">: - source image filename</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span><span class="var-description">: <ul><li>filename prefix</li></ul></span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$type</span>			</li>
				</ul>
		
			
	</div>
<a name="methodbuildtextwatermark" id="buildtextwatermark"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method buildtextwatermark</span> (line <span class="line-number">791</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build watermark text</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			buildtextwatermark
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$text</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$font</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$color</span> = <span class="var-default">'#ffffff'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">'center'</span>], [<span class="var-type">imt</span>&nbsp;<span class="var-name">$alpha_level</span> = <span class="var-default">50</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$angle</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$text</span><span class="var-description">: <ul><li>watemark text</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$font</span><span class="var-description">: <ul><li>path to watemark font file</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$color</span><span class="var-description">: <ul><li>watemark text color in hex format (default white #fff)</li></ul></span>			</li>
					<li>
				<span class="var-type">imt</span>
				<span class="var-name">$alpha_level</span><span class="var-description">: <ul><li>watemark text alpha level (default = 100)</li></ul></span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$position</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$angle</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalculateposition" id="calculateposition"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method calculateposition</span> (line <span class="line-number">866</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculate watemark position</p>
	<ul class="tags">
				<li><span class="field">return:</span> start overlay coordinates</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">array</span>
		<span class="method-name">
			calculateposition
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$watermark_img</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$position</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$src_image</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$src_image</span><span class="var-description">: <ul><li>path to image source or gd image resource</li></ul></span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$watermark_img</span><span class="var-description">: - path to image destination or gd image resource</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$position</span><span class="var-description">: <ul><li>overlay position</li></ul></span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$image_source</span>			</li>
				</ul>
		
			
	</div>
<a name="methodclearimagename" id="clearimagename"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method clearimagename</span> (line <span class="line-number">369</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Clear (normalize) image filename</p>
	<ul class="tags">
				<li><span class="field">return:</span> cleared filename</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			clearimagename
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: <ul><li>source image filename</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodconvert" id="convert"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method convert</span> (line <span class="line-number">159</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Convert image to another format</p>
	<ul class="tags">
				<li><span class="field">return:</span> full path to destination</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			convert
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">'png'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$new_filename</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$format</span><span class="var-description">: <ul><li>new image format</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span><span class="var-description">: <ul><li>prefix to the file name</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$new_filename</span><span class="var-description">: - new image file name</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreate" id="create"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method create</span> (line <span class="line-number">59</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create image from source</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource or false</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">mixed</span>
		<span class="method-name">
			create
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcrop" id="crop"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method crop</span> (line <span class="line-number">1083</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Crop image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			crop
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$src_x</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$src_y</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$crp_width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$crp_height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$src_x</span><span class="var-description">: <ul><li>x-coordinate of source point.</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$src_y</span><span class="var-description">: <ul><li>y-coordinate of source point.</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$crp_width</span><span class="var-description">: <ul><li>destination image width</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$crp_height</span><span class="var-description">: <ul><li>destination image height</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methoddestroy" id="destroy"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method destroy</span> (line <span class="line-number">267</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Destroy image resource</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">bool</span>
		<span class="method-name">
			destroy
		</span>
					(<span class="var-type">resource</span>&nbsp;<span class="var-name">$image</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">resource</span>
				<span class="var-name">$image</span><span class="var-description">: <ul><li>gd resource</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodfade" id="fade"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method fade</span> (line <span class="line-number">618</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Fade image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			fade
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$alpha_start</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$alpha_end</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$bg_color</span> = <span class="var-default">&quot;#fff&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$alpha_start</span><span class="var-description">: <ul><li>start alpha level</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$alpha_end</span><span class="var-description">: <ul><li>end alpha level</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$bg_color</span><span class="var-description">: <ul><li>color in hex string format</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodfilename" id="filename"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method filename</span> (line <span class="line-number">387</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get image filename</p>
	<ul class="tags">
				<li><span class="field">return:</span> image file name</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			filename
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$image_source</span><span class="var-description">: <ul><li>source image filename</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodgradientfill" id="gradientfill"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method gradientfill</span> (line <span class="line-number">944</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Draws the gradient image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd image resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			gradientfill
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$image_width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$image_height</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$direction</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$start_color</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$end_color</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$image_width</span><span class="var-description">: <ul><li>image width</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$image_height</span><span class="var-description">: <ul><li>image height</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$direction</span><span class="var-description">: <ul><li>gradient direction</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$start_color</span><span class="var-description">: <ul><li>start color in hex color</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$end_color</span><span class="var-description">: <ul><li>end color in hex color</li></ul></span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$step</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgrayscale" id="grayscale"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method grayscale</span> (line <span class="line-number">124</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Convert color image to grayscale</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource or false</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">mixed</span>
		<span class="method-name">
			grayscale
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source</span>			</li>
				</ul>
		
			
	</div>
<a name="methodheight" id="height"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method height</span> (line <span class="line-number">347</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get image height</p>
	<ul class="tags">
				<li><span class="field">return:</span> source image width in px</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">int</span>
		<span class="method-name">
			height
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd resource</span>			</li>
				</ul>
		
			
	</div>
<a name="methodhextorgb" id="hextorgb"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method hextorgb</span> (line <span class="line-number">25</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Convert color from hex string to rgb color</p>
	<ul class="tags">
				<li><span class="field">return:</span> rgb color as array</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">array</span>
		<span class="method-name">
			hextorgb
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$color</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$color</span><span class="var-description">: - color in hex format</span>			</li>
				</ul>
		
			
	</div>
<a name="methodinfo" id="info"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method info</span> (line <span class="line-number">283</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get basic information from Image source</p>
	<ul class="tags">
				<li><span class="field">return:</span> source image information (int, string or array)</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">mixed</span>
		<span class="method-name">
			info
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$info_type</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or image object</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$info_type</span><span class="var-description">: <ul><li>type of the returned information</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodisgdloaded" id="isgdloaded"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method isgdloaded</span> (line <span class="line-number">41</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check if GD extension is loaded</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">bool</span>
		<span class="method-name">
			isgdloaded
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodisgdresource" id="isgdresource"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method isgdresource</span> (line <span class="line-number">107</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validate gd resource</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">bool</span>
		<span class="method-name">
			isgdresource
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: <ul><li>gd image resource</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodmime" id="mime"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method mime</span> (line <span class="line-number">358</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get image mime/type</p>
	<ul class="tags">
				<li><span class="field">return:</span> source image mime type</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			mime
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd resource</span>			</li>
				</ul>
		
			
	</div>
<a name="methodnegative" id="negative"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method negative</span> (line <span class="line-number">140</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Conver image to negative</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource or false</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">mixed</span>
		<span class="method-name">
			negative
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source</span>			</li>
				</ul>
		
			
	</div>
<a name="methodonlyreflection" id="onlyreflection"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method onlyreflection</span> (line <span class="line-number">534</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build image reflection</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			onlyreflection
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span> = <span class="var-default">30</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$ratio</span><span class="var-description">: <ul><li>reflection ratio %</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodoverlay" id="overlay"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method overlay</span> (line <span class="line-number">828</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build overlayed image from another image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			overlay
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$watermark_img</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">'random'</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$alpha_level</span> = <span class="var-default">50</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: <ul><li>path to image source or gd image resource</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$watermark_img</span><span class="var-description">: - path to watemark image source</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$alpha_level</span><span class="var-description">: <ul><li>watemark image aplha level (default = 100)</li></ul></span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$position</span>			</li>
				</ul>
		
			
	</div>
<a name="methodquadrate" id="quadrate"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method quadrate</span> (line <span class="line-number">491</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build quadrate image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			quadrate
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$dimension</span> = <span class="var-default">'px'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$ratio</span><span class="var-description">: <ul><li>resize ratio</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dimension</span><span class="var-description">: <ul><li>ration dimension % or px</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodreflection" id="reflection"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method reflection</span> (line <span class="line-number">572</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build image with reflection</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			reflection
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span> = <span class="var-default">30</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or image object</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$ratio</span><span class="var-description">: <ul><li>reflection ratio %</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodresize" id="resize"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method resize</span> (line <span class="line-number">447</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Resize image to fixed dimensions</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			resize
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span><span class="var-description">: <ul><li>new image width in px</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span><span class="var-description">: <ul><li>new image height in px</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodresizeto" id="resizeto"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method resizeto</span> (line <span class="line-number">421</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Proportional resize image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			resizeto
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$new_size</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$dimension</span> = <span class="var-default">&quot;width&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$new_size</span><span class="var-description">: <ul><li>new image size in px</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dimension</span><span class="var-description">: <ul><li>resize directions</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodrotate" id="rotate"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method rotate</span> (line <span class="line-number">662</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Rotate image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			rotate
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$degrees</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$bg_color</span> = <span class="var-default">''</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$transparent</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$degrees</span><span class="var-description">: <ul><li>rotate angle</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$bg_color</span><span class="var-description">: <ul><li>background color (default empty)</li></ul></span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$transparent</span><span class="var-description">: <ul><li>transparent background (default = true)</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method save</span> (line <span class="line-number">222</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Save image in to file</p>
	<ul class="tags">
				<li><span class="field">return:</span> path to destination</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			save
		</span>
					(<span class="var-type">resource</span>&nbsp;<span class="var-name">$image</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$destination</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'png'</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$quality</span> = <span class="var-default">100</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">resource</span>
				<span class="var-name">$image</span><span class="var-description">: <ul><li>gd image resource</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$destination</span><span class="var-description">: - output destination path and filename</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span><span class="var-description">: <ul><li>prefix to the file name</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: <ul><li>new image format (default = png)</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$quality</span><span class="var-description">: <ul><li>resulted image quality (default = 100)</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodscale" id="scale"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method scale</span> (line <span class="line-number">469</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Scale image size</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			scale
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$ratio</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$ratio</span><span class="var-description">: <ul><li>image scaling value in %</li></ul></span>			</li>
				</ul>
		
			
	</div>
<a name="methodshow" id="show"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method show</span> (line <span class="line-number">179</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Output image in to browser</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			show
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$image</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'png'</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$quality</span> = <span class="var-default">100</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$image</span><span class="var-description">: <ul><li>source image as object</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: <ul><li>output image format (default = png)</li></ul></span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$quality</span><span class="var-description">: - resulted image quality in % (default = 100)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodtext" id="text"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method text</span> (line <span class="line-number">703</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Build text as image</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			text
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$text</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$font_size</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$path_to_font</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$font_color</span> = <span class="var-default">'#ffffff'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$bg_color</span> = <span class="var-default">'#000000'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$shadow</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$shadow_color</span> = <span class="var-default">'#cccccc'</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$font</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$text_color</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$font</span><span class="var-description">: <ul><li>path to ttf font file</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$text_color</span><span class="var-description">: <ul><li>text color if false transparent</li></ul></span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$bg_color</span><span class="var-description">: <ul><li>background color if false transparent</li></ul></span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$text</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$font_size</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$path_to_font</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$font_color</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$shadow</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$shadow_color</span>			</li>
				</ul>
		
			
	</div>
<a name="methodtranparent" id="tranparent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method tranparent</span> (line <span class="line-number">1047</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set tranparent color</p>
	<ul class="tags">
				<li><span class="field">return:</span> gd resource</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">resource</span>
		<span class="method-name">
			tranparent
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$image_source</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$color</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$image</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image</span><span class="var-description">: - path to image source or gd image resource</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$color</span><span class="var-description">: - color hex string format or rgb array</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$image_source</span>			</li>
				</ul>
		
			
	</div>
<a name="methodwidth" id="width"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method width</span> (line <span class="line-number">336</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get image width</p>
	<ul class="tags">
				<li><span class="field">return:</span> source image width in px</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">int</span>
		<span class="method-name">
			width
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$image_source</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$image_source</span><span class="var-description">: - path to image source or gd resource</span>			</li>
				</ul>
		
			
	</div>

<a name="methoddownload" id="download"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">download</span> (line <span class="line-number">1108</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Download image from url</p>
	<ul class="tags">
				<li><span class="field">return:</span> full local path to downloaded image</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			download
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$path_to_source</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$path_to_temp</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$path_to_source</span><span class="var-description">: - path to remote image source</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$path_to_temp</span><span class="var-description">: <ul><li>path to local destination</li></ul></span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 07 Aug 2011 17:01:59 +0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>